/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.inysa.TablasEntidades;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author chiconestor
 */
@Entity
@Table(name = "PersonalTarifasTipos", catalog = "TareosBD", schema = "dbo")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "PersonalTarifasTipos.findAll", query = "SELECT p FROM PersonalTarifasTipos p"),
    @NamedQuery(name = "PersonalTarifasTipos.findByIdTipoTarifa", query = "SELECT p FROM PersonalTarifasTipos p WHERE p.idTipoTarifa = :idTipoTarifa"),
    @NamedQuery(name = "PersonalTarifasTipos.findByTipoTarifa", query = "SELECT p FROM PersonalTarifasTipos p WHERE p.tipoTarifa = :tipoTarifa"),
    @NamedQuery(name = "PersonalTarifasTipos.findByDetalle", query = "SELECT p FROM PersonalTarifasTipos p WHERE p.detalle = :detalle"),
    @NamedQuery(name = "PersonalTarifasTipos.findByCodUsu", query = "SELECT p FROM PersonalTarifasTipos p WHERE p.codUsu = :codUsu"),
    @NamedQuery(name = "PersonalTarifasTipos.findByFechaMod", query = "SELECT p FROM PersonalTarifasTipos p WHERE p.fechaMod = :fechaMod")})
public class PersonalTarifasTipos implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "idTipoTarifa", nullable = false)
    private Integer idTipoTarifa;
    @Size(max = 1)
    @Column(name = "TipoTarifa", length = 1)
    private String tipoTarifa;
    @Size(max = 100)
    @Column(name = "Detalle", length = 100)
    private String detalle;
    @Size(max = 10)
    @Column(name = "CodUsu", length = 10)
    private String codUsu;
    @Column(name = "FechaMod")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fechaMod;

    public PersonalTarifasTipos() {
    }

    public PersonalTarifasTipos(Integer idTipoTarifa) {
        this.idTipoTarifa = idTipoTarifa;
    }

    public Integer getIdTipoTarifa() {
        return idTipoTarifa;
    }

    public void setIdTipoTarifa(Integer idTipoTarifa) {
        this.idTipoTarifa = idTipoTarifa;
    }

    public String getTipoTarifa() {
        return tipoTarifa;
    }

    public void setTipoTarifa(String tipoTarifa) {
        this.tipoTarifa = tipoTarifa;
    }

    public String getDetalle() {
        return detalle;
    }

    public void setDetalle(String detalle) {
        this.detalle = detalle;
    }

    public String getCodUsu() {
        return codUsu;
    }

    public void setCodUsu(String codUsu) {
        this.codUsu = codUsu;
    }

    public Date getFechaMod() {
        return fechaMod;
    }

    public void setFechaMod(Date fechaMod) {
        this.fechaMod = fechaMod;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idTipoTarifa != null ? idTipoTarifa.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PersonalTarifasTipos)) {
            return false;
        }
        PersonalTarifasTipos other = (PersonalTarifasTipos) object;
        if ((this.idTipoTarifa == null && other.idTipoTarifa != null) || (this.idTipoTarifa != null && !this.idTipoTarifa.equals(other.idTipoTarifa))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.inysa.TablasEntidades.PersonalTarifasTipos[ idTipoTarifa=" + idTipoTarifa + " ]";
    }
    
}
